﻿
using System.Collections.Generic;


namespace Spellchecker
{
    public static class Spellchecker
    {
        public static bool HasSpellingErrors( string text )
        {
            var dictRaw = DateiLeser.Load("wortverzeichnis.txt");
            var dictExp = DictionaryExpander.ExpandDict(dictRaw);
            var wordsToTest = TextIntoWordsSplitter.SplitTextIntoWords(text);
            return Wortverarbeiter.CheckWords(wordsToTest, dictExp);
 
        }
    }
}
